package test5;

interface IShape {

    public abstract void draw();

    default public void func() {
    }

    public static void funcStatic() {
        System.out.println("fafafa");
    }
}

class A implements IShape{
    @Override
     public  void draw() {

    }
}

class Rect implements IShape{
    @Override
    public void draw() {
        System.out.println("♦");
    }
}
public class Demo5 {
    public static void main(String[] args) {
        //IShape iShape=new IShape();//error
        IShape iShape=new Rect();
        iShape.draw();
    }


}
